package com.zhanghe.study.design_pattern.observer_pattern;

/**
 * @author zh
 * @date 2022/10/13 14:29
 */
public class Main {
    public static void main(String[] args) {
        ConcreteObserver observer = new ConcreteObserver();

        ConcreteSubject subject = new ConcreteSubject();
        subject.attach(observer);
        subject.setState(1);

    }
}
